<?php

require_once(dirname(__FILE__) . '/../../../../simpletest/autorun.php');
//require_once(dirname(__FILE__) . '/../../../../simpletest/web_tester.php');

require_once(dirname(__FILE__) . '/../php/templateHandler.php');


class TestOfAdd extends UnitTestCase {
	function testAdd() {
		$this->assertTrue( 1+1 == 2 );
		$this->assertTrue( 2+2 == 4 );
	}
	
	function testTemplateList() {
		$this->assertEqual(
			listTemplates(),
			array("protocol1.txt", "usda-safety.txt"));
	}
}

/*
class TestInteraction extends WebTestCase {

	function testBasicLogin() {
		$url = 'http://10.16.13.13/~nwatkins/lab-check/prototypes/web-ui/php/';
		$this->get($url);
		$this->assertText("Lab-Check");
		$this->assertText("Username");
		$this->assertText("Password");
		$this->assertFieldById("user", "");
		$this->assertFieldById("pwd", "");
		
		$this->setField('user', 'student');
		$this->setField('pwd', 'letmein');
		$this->assertTrue($this->click("Log In"));
		$this->assertText("Inspect Lab");
	}

}
*/


?>
